package com.pro.mapper;

import com.pro.pojo.JsUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:LoginUserMapper
 * Package:com.pro.mapper
 * Description:
 *
 * @Date:2022/1/7 11:20
 * @Author: XJR
 */
public interface JsLoginUserMapper {
    //登录
    public JsUser loginUser(@Param("account") String account,@Param("password") String password);
    //根据名字查询
    public JsUser loginByName(String username);

    /**
     * @author WYH
     * @date 2022/1/11 上午 10:49
     * @content : 查询登录用户的信息
     */
    List<JsUser> getLoginMsg(String account);
    /**
     *
     * @author ZPT
     * @date 2022/1/16 16:26
     * @content :根据用户id查询信息
     */
    JsUser getUserById(Integer userId);
    /**
     *
     * @author ZPT
     * @date 2022/1/16 16:36
     * @content :修改密码，头像
     */
    Boolean updateUser(@Param("userId") Integer userId, @Param("password") String password, @Param("acatarUrl") String acatarUrl);
}
